import request from '@/utils/request'
// -------- 实体组织 --------

let BASE_ADDRESS = 'base/organization'
//  组织分页条件查询
export function getlabelOrganizationListApi(params) {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}

//  分渠的list查找
export function getlabelOrganizationApi(params) {
    return request({
        url: `${BASE_ADDRESS}/diversionChannel`,
        method: "get",
        params
    })
}

//  修改分渠
export function getPrganizationdiversionChannelPutApi(data) {
    return request({
        url: `${BASE_ADDRESS}/diversionChannel`,
        method: "put",
        data
    })
}


//  实体设置 分页查询 附带管理人信息
export function getPrganizationlist_managerApi(params) {
    return request({
        url: `${BASE_ADDRESS}/list_manager`,
        method: "GET",
        params
    })
}
// 管理人信息ID查询
export function getPrganizationlist_managerinfoApi(params) {
    return request({
        url: `/base/organizationManager/list`,
        method: "GET",
        params
    })
}

//  添加
export function getPrganizationAddApi(data) {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: "POST",
        data
    })
}


//  修改
export function getPrganizationEditApi(data) {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "PUT",
        data
    })
}

// 添加实体收款人和管拨收款人时调的查询人的接口 /base/organizationManager/surePosition
export function surePositionOrganizationManagerApi(params) {
    return request({
        url: `/base/organizationManager/surePosition`,
        method: "get",
        params
    })
}
